using Core.Domain.Entities;
using FluentNHibernate.Mapping;

namespace DataMain.Mappings
{
  public class VoterMap : ClassMap<Voter>
  {
    public VoterMap()
    {
      Id(x => x.Id);
      Map(x => x.WhenSubmitted);
      Map(x => x.BallotSubmissionMethod);
      References(x => x.PersonVoting);
      References(x => x.AtLocation);
      References(x => x.Election);
      References(x => x.ReceivedByTeller);
    }
  }
}